Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OGUI-1581] Split action for taking/releasing all locks in API router #2672

Conversation

pepijndik
Copy link
Collaborator

@pepijndik pepijndik commented Nov 25, 2024

I have JIRA issue created

  • branch and/or PR name(s) includes JIRA ID
  • issue has "Fix version" assigned
  • issue "Status" is set to "In review"
  • PR labels are selected
  • FLP integration tests were ran successful

Added middleware to append detectorid, and endpoint for action of all detectors

Added Endpoint to manage all detectors, enforce Global role.
should allow access for Global user on locks ALL. Expect Taken states
This middleware will add the detectorid object to the requests
Copy link
Member

@graduta graduta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @pepijndik !
Very nice and quick PR, especially well done on the testing side!
I added a few minor comments for you to have a look and fix

Control/lib/api.js Outdated Show resolved Hide resolved
Control/lib/middleware/addDetectorId.middleware.js Outdated Show resolved Hide resolved
@pepijndik pepijndik requested a review from graduta November 26, 2024 17:15
Control/lib/api.js Outdated Show resolved Hide resolved
Control/lib/common/lock/detectorIdState.enum.js Outdated Show resolved Hide resolved
Control/lib/middleware/addDetectorId.middleware.js Outdated Show resolved Hide resolved
@pepijndik pepijndik requested a review from graduta December 2, 2024 08:50
@pepijndik pepijndik requested a review from graduta December 3, 2024 08:02
Copy link
Member

@graduta graduta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please have a look at one comment I added but also at the GitHub Code Scanning comments

Control/test/api/lock/api-put-locks.test.js Outdated Show resolved Hide resolved
@pepijndik pepijndik requested a review from graduta December 3, 2024 19:03
@graduta graduta merged commit 3438073 into dev Dec 3, 2024
9 checks passed
@graduta graduta deleted the feature/pepijndik/OGUI-1581/Splitactionfortaking/releasingalllocksinAPIrouter branch December 3, 2024 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants